home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00113_Script_completionMenu
< prev
next >
Wrap
Text File
|
1999-04-25
|
3KB
|
118 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
property mySprite, neuName, rolName, Index, selected,¼
linkedPict,linkedPictNeuName,linkedPictRolName,¼
linkedField,linkedFieldNeuName,linkedFieldRolName
global process --currently selected process
global city --currently selected city
on new me
set mySprite = the spriteNum of me
set selected = 0
--Figure out which menu item is selected and rememnber it
set neuName = the name of member (the member of sprite mySprite)
if neuName contains "-rol" then
set selected = 1
set process = getIndex (me)
end if
if not selected then
set rolName = neuName&"-rol"
set Index = getIndex (me)
if neuName contains "field" then
set save = the itemDelimiter
set the itemDelimiter = "_"
set linkedPictNeuName = item 2 of neuName
set the itemDelimiter = save
set linkedPict = getSpriteNumFromMemberName (linkedPictNeuName)
set linkedPictRolName = linkedPictNeuName&"-rol"
end if
end if
end
on getIndex me
set myString = ""
set NeutralName = getNeutralName (me)
repeat with i = the Number of Chars in NeutralName down to 1
set value = integer(char i of NeutralName)
if not(voidP(value)) then
set myString = myString&string(value)
else
exit repeat
end if
end repeat
return myString
end
on mouseEnter me
if not selected then
if voidP(linkedPict) then
set the member of sprite mySprite = member rolName
else
set the member of sprite linkedPict = member linkedPictRolName
end if
end if
puppetsound 3, "subroll"
end
on mouseLeave me
if not selected then
if voidP(linkedPict) then
set the member of sprite mySprite = member neuName
else
set the member of sprite linkedPict = member linkedPictNeuName
end if
end if
end
on mouseUp me
if not selected then
set frameName = city&Index
go to frame frameName
end if
puppetsound 3, "mouse5"
end
on getNeutralName me
set aMember = the member of sprite mySprite
set Name = the name of member aMember
if Name contains "-" then
repeat with i = the Number of Chars of Name down to 1
if char i of Name <> "-" then
delete char i of Name
else
delete char i of Name
exit repeat
end if
end repeat
end if
return Name
end